package com.foreknow.demo10;

public class Bird {
   private String name;
   private String color;


   public Bird(){

   }

   public Bird(String name,String color){
       this.name=name;
       this.color=color;
   }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void eat(){
        System.out.println(name+"正在吃饭....");
    }
}
